#include "Tools.h"

vector<string> stringSplit(string str, string separator)
{
    vector<string> result;
    int found;
    while((found = str.find_first_of((separator))) != string::npos){
        if(found>0)
        {
            result.push_back(str.substr(0,found));
            str = str.substr(found+1);
        }
    }
    if(str.length()>0)
    {
        result.push_back(str);
    }
    return result;
}

void pathCheck(string &path)
{
    replace(path.begin(),path.end(),'\\','/');
}

